package com.azt.provider.mapper;

import java.util.List;
import java.util.Map;

import com.azt.api.pojo.CoinRule;

import tk.mybatis.mapper.common.Mapper;

public interface CoinRuleMapper extends Mapper<CoinRule>  {
    
	public List<CoinRule> selectCoineList(Map<String, String> params);

	/**
	 * 根据ruleCode获取有效的rule
	 * @param ruleCode
	 * @return
	 */
	public CoinRule selectEffectiveRule(String ruleCode);


	/**
	 * 获取待复核的安装币
	 * @param companyId
	 * @return
	 */
	public int getUsedCoinByCompanyId(int companyId);
}